@echo off
SET BASE_PATH=bin
SET SERVER_PATH=%BASE_PATH%\server
SET CLIENT_PATH=%BASE_PATH%\client
md %BASE_PATH%
md %SERVER_PATH%
md %CLIENT_PATH%
call filetobin.bat
echo start to build
go build -tags 'release' -o %CLIENT_PATH%\ngrok.exe gitee.com/hailaz/ngrok/main/ngrok
go build -tags 'release' -o %SERVER_PATH%\ngrokd.exe gitee.com/hailaz/ngrok/main/ngrokd
SET GOOS=linux
SET GOARCH=amd64
go build -tags 'release' -o %CLIENT_PATH%\ngrok gitee.com/hailaz/ngrok/main/ngrok
go build -tags 'release' -o %SERVER_PATH%\ngrokd gitee.com/hailaz/ngrok/main/ngrokd
SET GOOS=
SET GOARCH=
echo build finished
echo file in path %BASE_PATH%